/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/* 
 * File:   common.h
 * Author: Administrator
 *
 * Created on 2019年5月27日, 下午4:53
 */

#ifndef COMMON_H
#    define COMMON_H

#    ifdef __cplusplus
extern "C" {
#    endif

//各种第三方库
//VC6处理
#if (_MSC_VER == 1200)
#define inline __inline
#define deprecated
#define snprintf _snprintf
#ifndef __intptr_t_defined
typedef int                    intptr_t;
typedef unsigned int        uintptr_t;
#define __intptr_t_defined
#endif
#endif 
    
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/avutil.h>
#include <libswscale/swscale.h>
#include <libswresample/swresample.h>
#include <SDL/SDL.h> 
#include <SDL/SDL_thread.h>
#ifndef __MINGW32__
#pragma comment(lib,"avformat.lib")
#pragma comment(lib,"avutil.lib")
#pragma comment(lib,"avcodec.lib")
#pragma comment(lib,"swscale.lib")
#pragma comment(lib,"swresample.lib")
#pragma comment(lib,"sdl.lib")
#pragma comment(lib,"sdlmain.lib")
#endif   
    

#    ifdef __cplusplus
}
#    endif

#endif /* COMMON_H */

